package ch7.test;

public class Vehicle {
	
	private String brand;
	private String color;
	private double speed;
	
	public void run() {
		System.out.println(brand+"的"+color+"的汽车速度为"+speed);	
	}
	
	public Vehicle(String brand, String color, double speed) {
		super();
		this.brand = brand;
		this.color = color;
		this.speed = speed;
	}



	public String getBrand() {
		return brand;
	}



	public void setBrand(String brand) {
		this.brand = brand;
	}



	public String getColor() {
		return color;
	}



	public void setColor(String color) {
		this.color = color;
	}



	public double getSpeed() {
		return speed;
	}



	public void setSpeed(double speed) {
		this.speed = speed;
	}



	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Vehicle vehicle = new Vehicle("benz", "black", 0.00);
		vehicle.run();
				

	}

}
